﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UcChucNang.ascx.cs"
    Inherits="Viewer.ChucNang.UserControls.UcChucNang" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<ext:Window ID="wdChucNang" runat="server" Width="450" AutoHeight="true" Modal="true"
    Hidden="true" Resizable="false" Icon="User" BodyCssClass="window">
    <Items>
        <ext:Hidden runat="server" ID="hdStatus">
        </ext:Hidden>
        <ext:FormPanel runat="server" Layout="FormLayout" LabelWidth="150" Border="false">
            <Bin>
                <ext:Store ID="storeChucNang" runat="server">
                    <Reader>
                        <ext:JsonReader IDProperty="ModuleID">
                            <Fields>
                                <ext:RecordField Name="ModuleID" />
                                <ext:RecordField Name="TenModuleFull" />
                            </Fields>
                        </ext:JsonReader>
                    </Reader>
                </ext:Store>
            </Bin>
            <Items>
                <ext:TextField ID="txtId" runat="server" ReadOnly="true" Width="50" Hidden="true" />
                <ext:TextField ID="txtShortName" runat="server" Width="250" FieldLabel=" Tên chức năng (Short)" />
                <ext:TextField ID="txtFullName" runat="server" Width="250" FieldLabel="Tên chức năng (Full)" />
                <ext:Hidden ID="hdIdCha" runat="server" />
                <ext:ComboBox ID="ccbToChucCha" runat="server" ReadOnly="true" DisplayField="TenModuleFull"
                    ValueField="ModuleID" EmptyText="" StoreID="storeChucNang" FieldLabel="Tên chức năng cha" Width="250">
                </ext:ComboBox>
                <ext:TextField ID="txtLink" runat="server" Width="250" FieldLabel="Link" />
                <ext:DisplayField runat="server" Html="<i>Ví dụ: NhanVien/NhanVien.aspx</i><br/>"></ext:DisplayField>
                <ext:TextField ID="txtIconName" runat="server" Width="250" FieldLabel="Icon" />
                 <ext:DisplayField ID="DisplayField1" runat="server" Html="<i>Ví dụ : User, ReportUser</i><br/>"></ext:DisplayField>
                <ext:TextField ID="txtGhiChu" runat="server" Width="250" FieldLabel="Ghi chú" />
            </Items>
        </ext:FormPanel>
    </Items>
    <Buttons>
        <ext:Button ID="btnSave" runat="server" Text="Lưu" Icon="Disk">
            <DirectEvents>
                <Click OnEvent="btnSave_Click">
                </Click>
            </DirectEvents>
        </ext:Button>
        <ext:Button ID="Button1" runat="server" Text="Đóng" Icon="Cancel">
            <Listeners>
                <Click Handler="#{wdChucNang}.hide();" />
            </Listeners>
        </ext:Button>
    </Buttons>
</ext:Window>
